/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package digitaldreamers.games.papermonsters.clients.gameclient.configurations;

/**
 *
 * @author Dao Le
 */
public class Configurations {
    // <editor-fold defaultstate="collapsed" desc="Constants">
    
    // <editor-fold defaultstate="collapsed" desc="Server configurations">
    public static final String GAME_SERVER_IP = "127.0.0.1";
    public static final int GAME_SERVER_PORT = 7777;
    public static final int TIME_OUT = 60;
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="Configuration types">
    private static final int PACKET_CONFIGURATION = 0;
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="Packet configurations">
    
    // <editor-fold defaultstate="collapsed" desc="Java packet names">
    public static final String RECEIVING_PACKET    = "digitaldreamers.games.papermonsters.clients.gameclient.network.packets.receiving.";
    public static final String SENDING_PACKET      = "digitaldreamers.games.papermonsters.clients.gameclient.network.packets.sending.";
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="Packet IDs">
    
    // <editor-fold defaultstate="collapsed" desc="Sending">
    
    // <editor-fold defaultstate="collapsed" desc="CONNECTED">
    /**
     * ID = 1
     */
    public static final int LOGIN_REQUEST_ID = 1;
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="NOT_IN_ROOM">
    /**
     * ID = 2
     */
    public static final int GET_ROOM_LIST_REQUEST_ID    = LOGIN_REQUEST_ID + 1;
    
    /**
     * ID = 3
     */
    public static final int CREATE_ROOM_REQUEST_ID      = GET_ROOM_LIST_REQUEST_ID + 1;
    
    /**
     * ID = 4
     */
    public static final int JOIN_ROOM_REQUEST_ID        = CREATE_ROOM_REQUEST_ID + 1;
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="IN_ROOM">
    
    // <editor-fold defaultstate="collapsed" desc="WAITING">
    /**
     * ID = 5
     */
    public static final int LEAVE_ROOM_REQUEST_ID        = JOIN_ROOM_REQUEST_ID + 1;
    
    /**
     * ID = 6
     */
    public static final int SET_READY_STATE_REQUEST_ID   = LEAVE_ROOM_REQUEST_ID + 1;
    
    /**
     * ID = 7
     */
    public static final int START_DUEL_REQUEST_ID        = SET_READY_STATE_REQUEST_ID + 1;
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="CLIENT_NOT_READY">
    /**
     * ID = 8
     */
    public static final int CLIENT_READY_REQUEST_ID = START_DUEL_REQUEST_ID + 1;
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="CLIENT_READY">
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="DUELING">
    /**
     * ID = 9
     */
    public static final int SUMMON_MONSTER_REQUEST_ID = CLIENT_READY_REQUEST_ID + 1;
    // </editor-fold>
    
    // </editor-fold>
    
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="Receiving">
    /**
     * ID = 1
     */
    public static final int LOGIN_REQUEST_RESPONSE_ID = 1;
    
    /**
     * ID = 2
     */
    public static final int GET_ROOM_LIST_REQUEST_RESPONSE_ID = LOGIN_REQUEST_RESPONSE_ID + 1;
    
    /**
     * ID = 3
     */
    public static final int CREATE_ROOM_REQUEST_RESPONSE_ID = GET_ROOM_LIST_REQUEST_RESPONSE_ID + 1;
    
    /**
     * ID = 4
     */
    public static final int NEW_ROOM_CREATED_PACKET_ID = CREATE_ROOM_REQUEST_RESPONSE_ID + 1;
    
    /**
     * ID = 5
     */
    public static final int JOIN_ROOM_REQUEST_RESPONSE_ID = NEW_ROOM_CREATED_PACKET_ID + 1;
    
    /**
     * ID = 6
     */
    public static final int PLAYER_JOIN_ROOM_PACKET_ID = JOIN_ROOM_REQUEST_RESPONSE_ID + 1;
    
    /**
     * ID = 7
     */
    public static final int LEAVE_ROOM_REQUEST_RESPONSE_ID = PLAYER_JOIN_ROOM_PACKET_ID + 1;
    
    /**
     * ID = 8
     */
    public static final int PLAYER_LEAVE_ROOM_PACKET_ID = LEAVE_ROOM_REQUEST_RESPONSE_ID + 1;
    
    /**
     * ID = 9
     */
    public static final int SET_READY_STATE_REQUEST_RESPONSE_ID = PLAYER_LEAVE_ROOM_PACKET_ID + 1;
    
    /**
     * ID = 10
     */
    public static final int PLAYER_IS_READY_PACKET_ID = SET_READY_STATE_REQUEST_RESPONSE_ID + 1;
    
    /**
     * ID = 11
     */
    public static final int ROOM_STATE_CHANGED_PACKET_ID = PLAYER_IS_READY_PACKET_ID + 1;
    
    /**
     * ID = 12
     */
    public static final int ROOM_REMOVED_PACKET_ID = ROOM_STATE_CHANGED_PACKET_ID + 1;
    
    /**
     * ID = 13
     */
    public static final int START_DUEL_REQUEST_RESPONSE_ID = ROOM_REMOVED_PACKET_ID + 1;
    
    /**
     * ID = 14
     */
    public static final int DUEL_STARTED_PACKET_ID = START_DUEL_REQUEST_RESPONSE_ID + 1;
    
    /**
     * ID = 15
     */
    public static final int TURN_PHASE_CHANGED_PACKET_ID = DUEL_STARTED_PACKET_ID + 1;
    
    /**
     * ID = 16
     */
    public static final int TURN_CHANGED_PACKET_ID = TURN_PHASE_CHANGED_PACKET_ID + 1;
    
    /**
     * ID = 17
     */
    public static final int DUEL_ENDED_PACKET_ID = TURN_CHANGED_PACKET_ID + 1;
    
    /**
     * ID = 18
     */
    public static final int CARDS_DRAWN_PACKET_ID = DUEL_ENDED_PACKET_ID + 1;
    
    /**
     * ID = 19
     */
    public static final int SUMMON_MONSTER_REQUEST_RESPONSE_ID = CARDS_DRAWN_PACKET_ID + 1;
    
    /**
     * ID = 20
     */
    public static final int OPPONENT_SUMMON_MONSTER_PACKET_ID = SUMMON_MONSTER_REQUEST_RESPONSE_ID + 1;
    
    // </editor-fold>
    
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="Packet class names">
    
    // <editor-fold defaultstate="collapsed" desc="Receiving">
    
    // <editor-fold defaultstate="collapsed" desc="CONNECTED">
    private static final String LOGIN_REQUEST_CLASS_NAME = "RLoginRequest";
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="NOT_IN_ROOM">
    private static final String GET_ROOM_LIST_REQUEST_CLASS_NAME  = "RGetRoomListRequest";
    private static final String CREATE_ROOM_REQUEST_CLASS_NAME    = "RCreateRoomRequest";
    private static final String JOIN_ROOM_REQUEST_CLASS_NAME      = "RJoinRoomRequest";
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="IN_ROOM">
    
    // <editor-fold defaultstate="collapsed" desc="WAITING">
    private static final String LEAVE_ROOM_REQUEST_CLASS_NAME         = "RLeaveRoomRequest";
    private static final String SET_READY_STATE_REQUEST_CLASS_NAME    = "RSetReadyStateRequest";
    private static final String START_DUEL_REQUEST_CLASS_NAME         = "RStartDuelRequest";
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="CLIENT_NOT_READY">
    private static final String CLIENT_READY_REQUEST_CLASS_NAME = "RClientReadyRequest";
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="CLIENT_READY">
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="DUELING">
    private static final String SUMMON_MONSTER_REQUEST_CLASS_NAME = "RSummonMonsterRequest";
    // </editor-fold>
    
    // </editor-fold>
    
    // </editor-fold>
    
    // </editor-fold>
    
    // </editor-fold>
    
    // </editor-fold>
}
